package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.Result;
import org.springframework.web.bind.annotation.*;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);
    /**
     * 添加员工
     * @param employeeDTO
     * @return
     */
    Result addEmp(EmployeeDTO employeeDTO);

    /**
     * 分页查询
     * @param employeePageQueryDTO
     * @return
     */
    Result page(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 启用和禁用
     * @param status
     * @param id
     * @return
     */
    Result updateEmpStaus(Integer status,Long id);
    /**
     * 按照id查询员工
     * @param id
     * @return
     */
    public Result getById(Long id);
    /**
     * 修改员工
     * @param employeeDTO
     * @return
     */
    public Result updateEmp(@RequestBody EmployeeDTO employeeDTO);

}
